home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
gnu
/
include
/
incl98.zoo
/
mintbind.h
< prev
next >
Wrap
C/C++ Source or Header
|
1994-03-29
|
18KB
|
501 lines
#ifndef _MINTBIND_H
#define _MINTBIND_H
#ifndef _OSBIND_H
#include <osbind.h>
#endif
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __TURBOC__
/* we supply a library of bindings for TurboC / PureC */
int Syield( void ); /* GEMDOS 0xff */
int Fpipe( short *ptr ); /* GEMDOS 0x100 */
long Fcntl( int f, long arg, int cmd); /* GEMDOS 0x104 */
#define Fcntl(f, arg, cmd) Fcntl(f, (long)(arg), cmd)
long Finstat( int f ); /* GEMDOS 0x105 */
long Foutstat( int f ); /* GEMDOS 0x106 */
long Fgetchar(int f, int mode); /* GEMDOS 0x107 */
long Fputchar( int f, long c, int mode ); /* GEMDOS 0x108 */
long Pwait( void ); /* GEMDOS 0x109 */
int Pnice( int delta ); /* GEMDOS 0x10a */
int Pgetpid( void ); /* GEMDOS 0x10b */
int Pgetppid( void ); /* GEMDOS 0x10c */
int Pgetpgrp( void ); /* GEMDOS 0x10d */
int Psetpgrp(int pid, int newgrp); /* GEMDOS 0x10e */
int Pgetuid( void ); /* GEMDOS 0x10f */
int Psetuid( int id ); /* GEMDOS 0x110 */
int Pkill( int pid, int sig ); /* GEMDOS 0x111 */
long Psignal(int sig, long handler); /* GEMDOS 0x112 */
long Pvfork( void ); /* GEMDOS 0x113 */
int Pgetgid( void ); /* GEMDOS 0x114 */
int Psetgid(int id); /* GEMDOS 0x115 */
long Psigblock(unsigned long mask); /* GEMDOS 0x116 */
long Psigsetmask(unsigned long mask); /* GEMDOS 0x117 */
long Pusrval(long arg); /* GEMDOS 0x118 */
int Pdomain(int newdom); /* GEMDOS 0x119 */
void Psigreturn( void ); /* GEMDOS 0x11a */
long Pfork( void ); /* GEMDOS 0x11b */
long Pwait3(int flag, long *rusage); /* GEMDOS 0x11c */
int Fselect(unsigned int timeout, long *rfds, long *wfds, long *xfds); /* GEMDOS 0x11d */
int Prusage( long r[8] ); /* GEMDOS 0x11e */
long Psetlimit(int lim, long value); /* GEMDOS 0x11f */
long Talarm( long secs ); /* GEMDOS 0x120 */
void Pause( void ); /* GEMDOS 0x121 */
long Sysconf( int n ); /* GEMDOS 0x122 */
long Psigpending( void ); /* GEMDOS 0x123 */
long Dpathconf( const char *name, int n ); /* GEMDOS 0x124 */
long Pmsg( int mode, long mbox, void *msg ); /* GEMDOS 0x125 */
long Fmidipipe( int pid, int in, int out ); /* GEMDOS 0x126 */
int Prenice( int pid, int delta ); /* GEMDOS 0x127 */
long Dopendir( const char *name, int flag ); /* GEMDOS 0x128 */
long Dreaddir( int buflen, long dir, char *buf); /*GEMDOS 0x129 */
#define Dreaddir(buflen, dir, buf) Dreaddir(buflen, (long)(dir), buf)
long Drewinddir( long dir ); /* GEMDOS 0x12a */
#define Drewinddir(dir) Drewinddir((long)(dir))
long Dclosedir( long dir ); /* GEMDOS 0x12b */
#define Dclosedir(dir) Dclosedir((long)(dir))
long Fxattr( int flag, char *name, void *buf ); /* GEMDOS 0x12c */
long Flink( char *oldname, char *newname ); /* GEMDOS 0x12d */
long Fsymlink( char *oldname, char *newname ); /* GEMDOS 0x12e */
long Freadlink( int siz, char *buf, char *name); /*GEMDOS 0x12f */
long Dcntl( int cmd, char *name, long arg ); /* GEMDOS 0x130 */
long Fchown( char *name, int uid, int gid); /* GEMDOS 0x131 */
long Fchmod( char *name, int mode ); /* GEMDOS 0x132 */
int Pumask( int mask ); /* GEMDOS 0x133 */
long Psemaphore(int mode, long id, long timeout); /* GEMDOS 0x134 */
int Dlock( int mode, int drive ); /* GEMDOS 0x135 */
void Psigpause( unsigned long mask); /* GEMDOS 0x136 */
long Psigaction(int sig, long act, long oact); /* GEMDOS 0x137 */
#define Psigaction(sig, act, oact) \
Psigaction(sig, (long)(act), (long)(oact))
int Pgeteuid( void ); /* GEMDOS 0x138 */
int Pgetegid( void ); /* GEMDOS 0x139 */
long Pwaitpid(int pid, int flag, long *rusage); /* GEMDOS 0x13a */
long Dgetcwd(char *path, int drv, int size); /* GEMDOS 0x13b */
long Salert(char *msg); /* GEMDOS 0x13c */
#else /* !__TURBOC__ */
#ifdef __LATTICE__
void _vmv(int);
short _smv(int);
int _imv(int);
long _lmv(int);
int _im8(int,long[8]);
void _vml(int,long);
short _sms(int,int);
short _smr(int,short *);
long _lms(int,int);
long _lml(int,long);
long _lmu(int,unsigned long);
long _lmp(int,void *);
long _lmC(int,const char *);
void _vmls(int,long,int);
short _smss(int,int,int);
short _smsl(int,int,long);
short _smls(int,long,int);
long _lmss(int,int,int);
long _lmsl(int,int,long);
long _lmsp(int,int,void *);
long _lmps(int,void *,int);
long _lmCs(int,const char *,short);
long _lmpp(int,void *,void *);
long _lmCC(int,const char *,const char *);
short _smsls(int,int,long,int);
int _imssq(int,int,int,long *);
long _lmsss(int,int,int,int);
long _lmsls(int,int,long,int);
long _lmsll(int,int,int,long);
long _lmslp(int,int,long,void *);
long _lmspl(int,int,void *,long);
long _lmsCl(int,int,const char *,long);
long _lmspp(int,int,void *,void *);
long _lmspC(int,int,void *,const char *);
long _lmlss(int,long,int,int);
long _lmCss(int,const char *,int,int);
long _lmcss(int,char *,int,int);
short _smsqqq(int,int,long *,long *,long *);
#pragma inline _vmv((short)) {register d2,a2; "4e41";}
#pragma inline d0=_smv((short)) {register d2,a2; "4e41";}
#pragma inline d0=_imv((short)) {register d2,a2; "4e41";}
#pragma inline d0=_lmv((short)) {register d2,a2; "4e41";}
#pragma inline d0=_im8((short),) {register d2,a2; "4e41";}
#pragma inline _vml((short),) {register d2,a2; "4e41";}
#pragma inline d0=_sms((short),(short)) {register d2,a2; "4e41";}
#pragma inline d0=_smr((short),) {register d2,a2; "4e41";}
#pragma inline d0=_lms((short),(short)) {register d2,a2; "4e41";}
#pragma inline d0=_lml((short),) {register d2,a2; "4e41";}
#pragma inline d0=_lmu((short),) {register d2,a2; "4e41";}
#pragma inline d0=_lmp((short),) {register d2,a2; "4e41";}
#pragma inline d0=_lmC((short),) {register d2,a2; "4e41";}
#pragma inline _vmls((short),,(short)) {register d2,a2; "4e41";}
#pragma inline d0=_smss((short),(short),(short)) {register d2,a2; "4e41";}
#pragma inline d0=_smsl((short),(short),) {register d2,a2; "4e41";}
#pragma inline d0=_smls((short),,(short)) {register d2,a2; "4e41";}
#pragma inline d0=_lmss((short),(short),(short)) {register d2,a2; "4e41";}
#pragma inline d0=_lmsl((short),(short),) {register d2,a2; "4e41";}
#pragma inline d0=_lmsp((short),(short),) {register d2,a2; "4e41";}
#pragma inline d0=_lmps((short),,(short)) {register d2,a2; "4e41";}
#pragma inline d0=_lmCs((short),,(short)) {register d2,a2; "4e41";}
#pragma inline d0=_lmpp((short),,) {register d2,a2; "4e41";}
#pragma inline d0=_lmCC((short),,) {register d2,a2; "4e41";}
#pragma inline d0=_smsls((short),(short),,(short)) {register d2,a2; "4e41";}
#pragma inline d0=_imssq((short),(short),(short),) {register d2,a2; "4e41";}
#pragma inline d0=_lmsss((short),(short),(short),(short)) {register d2,a2; "4e41";}
#pragma inline d0=_lmsls((short),(short),,(short)) {register d2,a2; "4e41";}
#pragma inline d0=_lmsll((short),(short),(short),) {register d2,a2; "4e41";}
#pragma inline d0=_lmlss((short),,(short),(short)) {register d2,a2; "4e41";}
#pragma inline d0=_lmslp((short),(short),,) {register d2,a2; "4e41";}
#pragma inline d0=_lmspl((short),(short),,) {register d2,a2; "4e41";}
#pragma inline d0=_lmsCl((short),(short),,) {register d2,a2; "4e41";}
#pragma inline d0=_lmspp((short),(short),,) {register d2,a2; "4e41";}
#pragma inline d0=_lmspC((short),(short),,) {register d2,a2; "4e41";}
#pragma inline d0=_lmlss((short),,(short),(short)) {register d2,a2; "4e41";}
#pragma inline d0=_lmCss((short),,(short),(short)) {register d2,a2; "4e41";}
#pragma inline d0=_lmcss((short),,(short),(short)) {register d2,a2; "4e41";}
#pragma inline d0=_smsqqq((short),(short),,,) {register d2,a2; "4e41";}
#define Syield() _smv(0xff)
#define Fpipe(a) _smr(0x100, a)
#define Fcntl(a, b, c) _smsls(0x104, a, (long)b, c)
#define Finstat(a) _lms(0x105, a)
#define Foutstat(a) _lms(0x106, a)
#define Fgetchar(a, b) _lmss(0x107, a, b)
#define Fputchar(a, b, c) _lmsls(0x108, a, b, c)
#define Pwait() _lmv(0x109)
#define Pnice(a) _sms(0x10a, a)
#define Pgetpid() _smv(0x10b)
#define Pgetppid() _smv(0x10c)
#define Pgetpgrp() _smv(0x10d)
#define Psetpgrp(a, b) _smss(0x10e, a, b)
#define Pgetuid() _smv(0x10f)
#define Psetuid(a) _sms(0x110, a)
#define Pkill(a, b) _smss(0x111, a, b)
#define Psignal(a, b) _lmsl(0x112, a, b)
#define Pvfork() _smv(0x113)
#define Pgetgid() _smv(0x114)
#define Psetgid(a) _sms(0x115, a)
#define Psigblock(a) _lmu(0x116, a)
#define Ps